<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <title>Photovoice <?php echo $title; ?></title>
    <meta name='description' content='<?php echo $meta_description; ?>' />
    <meta name='keywords' content='<?php echo $meta_keywords; ?>' />    
    <meta name='robots' content='index,follow' />
    <meta name='googlebot' content='index,follow,snippet,archive' />    
    <meta name='author' content='Krutil Jonáš' />
    <meta name='copyright' content='© 2010 Krutil Jonáš' />
    <link rel="icon" href="favicon.ico" type="image/x-icon" />
    <link rel='shortcut icon' type='image/x-icon' href='favicon.ico' />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="/media/js/html5.js"></script>
    <![endif]-->
    <?php foreach($styles as $item => $type) { echo HTML::style($item, array('media' => $type)); }?>
    
    <?php foreach($scripts as $item) { echo HTML::script($item, NULL, TRUE); }?>
    
  </head>
  <body>
    <div id="container">
      <!-- HTML5 hlavicka stranky -->
      <header id="container-head"> 
        <?php echo $navigation; ?>
        <?php echo $infoPanelTop; ?>
        <?php if (Auth::instance()->logged_in()): ?>
        <div id="panel-user"><div id="panel-user-body"><a href="<?php echo url::base().$userAuth->username; ?>" title="Můj profil"><strong><?php echo $userAuth->username ?></strong></a> | <a href="<?php echo url::base(); ?>photo" title="Mé fotografie">Fotografie</a> | <a href="<?php echo url::base(); ?>messages" title="Má pošta">Zprávy</a> | <a href="<?php echo url::base(); ?>notes" title="Zorganizujte si svůj čas">Poznámky</a> | <a href="<?php echo url::base(); ?>user/settings" title="Mé uživatelské nastavení">Nastavení</a> | <a href="<?php echo url::base(); ?>user/logout" title="Odhlásit uživatele">Odhlásit se</a><span></span></div></div>
        <?php endif ?>
        <h1><a href="<?php echo url::base(); ?>" title="Domovská stránka photovoice."><span></span><?php echo $h1; ?></a></h1>
      </header>
      <?php echo $content; ?>
      <div class="clear-both"></div>
    </div>
    <?php if (Request::instance()->controller !== 'profile' ): ?>
    <?php echo $footer; ?>
    <span id="themes-abs"><a href="<?php echo url::base(); ?>theme/red" title="Paint it RED"><img src="<?php echo url::base() ?>media/img/theme_red.gif" alt="Paint it RED" /></a><a href="<?php echo url::base(); ?>theme/default" title="DARK me!"><img src="<?php echo url::base() ?>media/img/theme_default.gif" alt="DARK me!" /></a></span>
    <?php endif ?>
    <?php
    if (Auth::instance()->logged_in('admin')) {
    echo '<div id="kohana-profiler" class="hide">';
    echo View::factory('profiler/stats');
    echo '</div>';
    }
    ?>
  </body>
</html>